package com.auth.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.auth.control.model.AuthDto;
import com.auth.domain.module.po.authmanage.Auth;
import com.auth.domain.module.vo.authmanage.AuthVO;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色权限表 服务类
 * </p>
 *
 * @author cyj
 * @since 2020-10-20
 */
public interface IAuthService extends IService<Auth> {

    /**
     * Gets auth by auth *
     *
     * @param auth auth
     * @return the auth by auth
     * @description: 根据auth 获取Auth实体
     */
    public Auth getAuthByAuth(String auth);

    IPage<AuthVO> getAuths(Page page);

    AuthVO saveAuth(AuthDto authDto);

    AuthVO updateAuth(AuthDto authDto);

    AuthVO deleteAuth(Long id);

    AuthVO selectAuth(Long id);

    List<AuthVO> getByIds(Set<Long> authIds);
}
